using LiteDB;

namespace FileTransferDesktop.Models;

/// <summary>
/// 应用程序设置模型
/// </summary>
public class AppSettings
{
    /// <summary>
    /// 设置项唯一标识
    /// </summary>
    [BsonId]
    public string Id { get; set; } = "app_settings";

    /// <summary>
    /// 默认下载路径
    /// </summary>
    public string DownloadPath { get; set; } =
        Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Downloads";

    /// <summary>
    /// 主题设置
    /// </summary>
    public string Theme { get; set; } = "System"; // System, Light, Dark

    /// <summary>
    /// 是否自动启动
    /// </summary>
    public bool AutoStart { get; set; } = false;

    /// <summary>
    /// 最大同时下载数
    /// </summary>
    public int MaxConcurrentDownloads { get; set; } = 5;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreatedAt { get; set; } = DateTime.Now;

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime UpdatedAt { get; set; } = DateTime.Now;
}
